package com.goldmantis.alitrip.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * @Author:Shmily
 * @Description:
 * @Date:Create in 15:29 2018/2/13
 */

@ApiModel(description = "登陆模型")
public class LoginModel {

    @ApiModelProperty("用户名")
    @NotNull(message = "用户名是必填项!")
    @NotEmpty(message = "用户名不能为空!")
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @ApiModelProperty("密码")
    @NotNull(message = "密码是必填项!")
    @NotEmpty(message = "用户名不能为空!")
    private String password;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
